<?
	$title="Edit Profiles";
	require("required/dbconnect.php");
	require("required/share_function.php");
	
	require("required/function.php"); 
	 
	$member_id=$_SESSION['loginid'];
	$name=$_POST['name'];
	$last_name=$_POST['last_name'];
	$membership_number=$_POST['membership_number'];
	$sex=$_POST['sex'];
	$dob=$_POST['dob'];
	
	$hpnumber=$_POST['hpnumber'];
	$fax=$_POST['fax'];
	$address1=$_POST['address1'];
	$address2=$_POST['address2'];
	$postcode=$_POST['postcode'];
	$country=$_POST['country'];
	$city=$_POST['city'];
	$state=$_POST['state'];
	
	$icnumber=$_POST['icnumber'];
	
		
	$update=mysql_query("update os_member set name='$name',last_name='$last_name',membership_number='$membership_number',gender='$sex',dob='$dob',icnumber='$icnumber',
						 hpnumber='$hpnumber',fax='$fax',address1='$address1',address2='$address2',postcode='$postcode',city='$city',state='$state',country='$country' 
						 where id=$member_id")or die(mysql_error());
	header("Location:os_viewdetails.php?updated=1");
?>
			
		
